home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
365_02
/
makefile.mix
< prev
next >
Wrap
Makefile
|
1992-04-04
|
19KB
|
696 lines
# combined Makefile for ELVIS - a clone of `vi`
#
# After editing this Makefile as described below, you should...
#
# Use `make` to compile all programs
# Use `make install` to copy the programs to the BIN directory
# Use `make clean` to remove all object files
# Use `make clobber` to remove everything except source & documentation
# Use `make uue` to produce uuencoded compressed tar archives of the source
# Use `make sh` to produce shar archives of the source
#
# Several groups of Makefile settings are included below. Choose *ONE* group
# of settings for your particular system, and leave the others commented out.
# The meanings of these settings are:
# OBJ the filename extension for unlinked object files -- usually .o
# EXE filename extension for elvis executable file -- .exe, .tpp or null
# COM filename extension for executable support files -- .com, .tpp or null
# EXTRA version-specific object files used in elvis
# EXTRA2 version-specific object files used in elvis & elvrec
# LIBS any special libraries, such as "-ltermcap"
# BIN directory where executables should be installed
# CC the C compiler command, possibly with "memory model" flags
# CFLAGS compiler flags used to select compile-time options
# LNK the linker command needed to link OBJ files (if not cc)
# LFLAGS linker flags used to select link-time options
# SMALL flag for special small memory model compilation -- usually null
# OF link flag to control the output file's name -- usually -o<space>
# RF flag used to denote "compile but don't link" -- usually -c
# PROGS the list of all programs
# CHMEM any extra commands to be run after ELVIS is linked
# SORT if the "tags" file must be sorted, then SORT=-DSORT
# RM the name of a program that deletes files
# CP name of a program that copies files -- copy or cp, usually
# SYS type of system & compiler: unx/tos/os9/dos (maybe vms?)
# DUMMY usually nothing, but OS9 needs "dummy"
# CFG name of compiler configuration file -- usually null
#---- These settings are recommended for System-V UNIX and SCO XENIX-386 ----
#OBJ= .o
#EXE=
#COM=
#EXTRA= unix$(OBJ)
#EXTRA2=
#LIBS= -lterm
#BIN= /usr/local/bin
#CC= cc
#CFLAGS= -DM_SYSV -O -DNO_SHIFT_FKEYS
#SMALL=
#OF= -o ""
#RF= -c
#EVAL= eval
#PROGS= elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
# elvprsv$(COM)
#CHMEM=
#SORT= -DSORT
#RM= rm -f
#CP= cp
#SYS= unx
#DUMMY=
#CFG=
#---- These settings are recommended for SCO XENIX-286 ----
#OBJ= .o
#EXE=
#COM=
#EXTRA= unix$(OBJ)
#EXTRA2=
#LIBS= -ltcap
#BIN= /usr/local/bin
#CC= cc -M2m -i
#CFLAGS= -Ox -DCS_IBMPC
#SMALL=
#OF= -o ""
#RF= -c
#EVAL= eval
#PROGS= elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
# elvprsv$(COM)
#CHMEM=
#SORT= -DSORT
#RM= rm -f
#CP= cp
#SYS= unx
#DUMMY=
#CFG=
#---- These settings are recommended for BSD 4.3 UNIX and SunOS ----
#OBJ= .o
#EXE=
#COM=
#EXTRA= unix$(OBJ)
#EXTRA2=
#LIBS= -ltermcap
#BIN= /usr/local/bin
#CC= cc
#CFLAGS= -Dbsd -O
#SMALL=
#OF= -o ""
#RF= -c
#EVAL= eval
#PROGS= elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) elvprsv$(COM)
#CHMEM=
#SORT= -DSORT
#RM= rm -f
#CP= cp
#SYS= unx
#DUMMY=
#CFG=
#---- These settings are recommended for Coherent ----
#OBJ=.o
#EXE=
#COM=
#EXTRA= unix$(OBJ) tinyprnt$(OBJ)
#EXTRA2=
#LIBS= -lterm
#BIN= /usr/bin
#CC= cc
#CFLAGS= -O -DCOHERENT -VSUVAR -DCRUNCH -DNO_CHARATTR -DNO_CURSORSHAPE \
# -DNO_DIGRAPH -DNO_MKEXRC -DNO_POPUP -DNO_FKEYS -DNO_ABBR
#SMALL=
#OF= -o ""
#RF= -c
#EVAL= eval
#PROGS= elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
# elvprsv$(COM)
#CHMEM= fixstack 2000 elvis$(EXE)
#SORT=
#RM= rm -f
#CP= cp
#SYS= unx
#DUMMY=
#CFG=
#---- These settings are recommended for Minix-ST ----
#OBJ= .o
#EXE=
#COM=
#EXTRA= unix$(OBJ)
#EXTRA2=
#LIBS=
#BIN= /usr/bin
#CC= cc
##CC= gcc -s
#CFLAGS=
#SMALL=
#OF= -o ""
#RF= -c
#EVAL= eval
#PROGS= elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
# elvprsv$(COM)
#CHMEM= chmem =18000 elvis$(EXE)
#SORT=
#RM= rm -f
#CP= cp
#SYS= unx
#DUMMY=
#CFG=
#---- These settings are recommended for Minix-PC ----
#OBJ= .s
#EXE=
#COM=
#EXTRA= tinytcap$(OBJ) unix$(OBJ) tinyprnt$(OBJ)
#EXTRA2=
#LIBS=
#BIN= /usr/bin
#CC= cc -i
#CFLAGS= -O -DCRUNCH \
# -DNO_MKEXRC -DNO_CURSORSHAPE -DNO_CHARATTR -DNO_SHOWMODE \
# -DNO_MODELINE -DNO_OPTCOLS -DNO_DIGRAPH -DNO_EXTENSIONS \
# -DNO_ERRLIST -DNO_FKEY -DNO_VISIBLE -DNO_COLOR -DNO_POPUP
###(not -NO_AT -DNO_SENTENCE -DNO_ABBR -DNO_RECYCLE -DNO_MAGIC -DNO_CHARSEARCH)
#SMALL=
#OF= -o ""
#RF= -c
#EVAL= eval
#PROGS= elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
# elvprsv$(COM)
#CHMEM=
#SORT=
#RM= rm -f
#CP= cp
#SYS= unx
#DUMMY=
#CFG=
#---- These settings are recommended for Amiga port done using Aztec 5.2b ----
# For AmigaDOS 2.04, you're all set! Its the default target!
#OBJ= .o
#EXE=
#COM=
#EXTRA= amiga$(OBJ) amitty$(OBJ) amisysio$(OBJ)
#EXTRA2= tinytcap$(OBJ)
#LIBS= -lc
#BIN= sys:utilities
#CC= cc
#CFLAGS= -sob -Damiga
#LNK= ln
#LFLAGS=
#SMALL=
#OF= -o
#RF=
#EVAL=
#PROGS1= elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM)
#PROGS2= elvprsv$(COM) ex$(COM) vi$(COM) view$(COM) input$(COM)
#PROGS= $(PROGS1) $(PROGS2)
#CHMEM=
#SORT=
#RM= delete
#CP= copy
#SYS= ami
#DUMMY=
#CFG=
#---- These settings are recommended for MS-DOS + MS-C + NDMAKE ----
#OBJ= .obj
#EXE= .exe
#COM= .exe # .com might work, try it
#EXTRA= pc$(OBJ) sysdos$(OBJ) tinytcap$(OBJ)
#EXTRA2=
#LIBS=
#BIN= c:\dos
#CC= cl
#CFLAGS= -O -DCS_IBMPC -DCS_SPECIAL -DINTERNAL_TAGS
#SMALL= /AM
#OF= -o
#RF= -c
#EVAL=
#PROGS1= elvis$(EXE) ex$(COM) ctags$(COM) ref$(COM) elvrec$(COM)
#PROGS2= wildcard$(COM) fmt$(COM) elvprsv$(COM)
#PROGS= $(PROGS1) $(PROGS2)
#CHMEM=
#SORT=
#RM= del
#CP= copy
#SYS= dos
#DUMMY=
#CFG=
##---- These settings are recommended for MS-DOS + TURBO/BORLAND C ----
## CFG: name of the compiler config and response files
## TC_LIB & TC_INC: location of standard libraries and header files.
#OBJ= .obj
#EXE= .exe
#COM= .com
#EXTRA= pc$(OBJ) sysdos$(OBJ) tinytcap$(OBJ)
#EXTRA2=
#LIBS=@borland.rsp
#BIN= c:\bin
#CFG= borland.cfg borland.rsp
#CC= bcc
#TC_LIB= c:\bcc\lib
#TC_INC= c:\bcc\include
#CFLAGS= +borland.cfg
## uncomment next line iff using bcc, and you want to use pre-compiled headers
#HDRS= -H -H=borland.hdr
## uncomment next line to use med memory model for elvis
##CRNCH= -DCRUNCH -mm
#TC_CFLAGS1= -ml -O -f- -w- -v -vi- -G- -DCS_IBMPC -DCS_SPECIAL -DINTERNAL_TAGS
#TC_CFLAGS2= $(HDRS) $(CRNCH) -I$(TC_INC) -L$(TC_LIB)
## extra flags for compiling support programs
#SMALL= -mt -lt -H- -v-
## extra flags for linking elvis (strip symbols)
#EFLAGS= -v-
#OF= -e
#RF= -c
#EVAL=
#PROGS1= elvis$(EXE) ex$(COM) ctags$(COM) ref$(COM) elvrec$(COM)
#PROGS2= wildcard$(COM) fmt$(COM) elvprsv$(COM)
#PROGS= $(PROGS1) $(PROGS2)
#CHMEM=
#SORT=
#RM= del
#CP= copy
#SYS= dos
#DUMMY=
##source file compilation rule:
#.c.obj:
# $(CC) $(CFLAGS) $(RF) {$< }
#---- These settings can almost make DOS executables using the XENIX compiler
#OBJ= .o
#EXE= .exe
#COM= .exe # .com might work, try it
#EXTRA= pc$(OBJ) sysdos$(OBJ) tinytcap$(OBJ)
#EXTRA2=
#LIBS=
#BIN= a:
#CC= cc -M2m -dos -F 4000
#CFLAGS= -O -DCS_IBMPC -DCS_SPECIAL -DINTERNAL_TAGS -Dvolatile= -Dconst=
#SMALL=
#OF= -o ""
#RF= -c
#EVAL=
#PROGS1= elvis$(EXE) ex$(COM) ctags$(COM) ref$(COM) elvrec$(COM)
#PROGS2= wildcard$(COM) fmt$(COM) elvprsv$(COM)
#PROGS= $(PROGS1) $(PROGS2)
#CHMEM=
#SORT=
#RM= rm -f
#CP= doscp -r
#SYS= xdos
#DUMMY=
#CFG=
#--- These settings are recommended for Atari TOS + Mark Williams C or Gnu C ----
#OBJ= .o
#EXE= .ttp
#COM= .ttp
#EXTRA= sysdos$(OBJ) tinytcap$(OBJ)
#EXTRA2= atari$(OBJ)
#LIBS=
#BIN= c:\ #
#CC= cc -VPEEP
##CC= gcc -s
#CFLAGS= -O -DCS_IBMPC -DCS_SPECIAL
#SMALL=
#OF= -o
#RF= -c
#EVAL=
#PROGS= elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) wildcard$(COM) \
# shell$(COM) fmt$(COM) elvprsv$(COM)
#CHMEM= @echo -n
#SORT=
#RM= rm -f
#CP= copy
#SYS= tos
#DUMMY=
#CFG=
#---- These settings are recommended for OS-9/6